package com.xiaoma.feign;

import entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @Author: xiaoma
 * @Date: 2021/8/24 10:08
 */
@FeignClient(value = "xiaoma-shop-goods")
public interface GoodsFeignService {
    @GetMapping(value = "/goods/lockStock/{id}/{num}")
    Integer lockStock(@PathVariable String id, @PathVariable Integer num);
}
